<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>bootstrap datatable demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">




<link rel="stylesheet" type="text/css"
	href="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/bootstrap-responsiv.css">


<link rel="stylesheet" type="text/css"
	href="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/dataTables.bootstra.css">
</head>

<body>

	<div class="container-fluid">
		<div class="row-fluid">

			<div>
				<ul class="breadcrumb">
					<li>基本功能：</li>
					<li>分页 <span class="divider">/</span>
					</li>
					<li>排序 <span class="divider">/</span>
					</li>
					<li>过滤</li>
				</ul>
			</div>
		</div>
		<div class="row-fluid">

			<table
				class="table table-striped table-bordered table-hover datatable">
				<thead>
					<tr>
					<c:set value="${fn:split(pageModel.th_list,',') }" var="ths"></c:set>
					<c:forEach items="${ths }" var="th">
						<th>${th }</th>
					</c:forEach>
					</tr>
				</thead>
				<tbody>
					<!-- 数据信息 -->
					<c:forEach items="${pageModel.td_list }" var="tds"
						varStatus="status">
						<tr class="odd gradeX">
							<td>${status.index + 1}</td>
							<c:forEach items="${tds }" var="td">
								<td>${td }</td>																
							</c:forEach>
							<td><a href="">查看详情</a></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<script type="text/javascript"
			src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/jquery.js"></script>
		<script type="text/javascript"
			src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/jquery.dataTables.js"></script>
		<script type="text/javascript"
			src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/bootstrap.min.js"></script>
		<script type="text/javascript"
			src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/dataTables.bootstrap.js"></script>

	</div>
	<script type="text/javascript">
		$(document).ready(function() {
    			$('.datatable').dataTable( {        				
        				"oLanguage": {
								"sUrl": "<%=path%>/json/zh_CN.json"
							} 
					});
		} );
		</script>
</body>

</html>
